package com.gator.desig_mode.template;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc 模板方法  定义骨架
 */
public abstract class AbstractClass {

  //如制作豆浆  选材-> 添加配料 - > 浸泡 -> 放到豆浆机

  protected abstract void materialSelection();

  protected abstract void addIngredients();

  protected abstract void soak();

  protected abstract void soybeanMilkMixer();

  protected boolean gouzi() {
    return true;
  }

  final void process() {

    materialSelection();

    if (gouzi()) {

      addIngredients();

    }

    soak();

    soybeanMilkMixer();
  }

}
